﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="InfoSEO.ascx.cs" Inherits="MpSoft.Web.AdminCP.ToolsBar.InfoSEO" %>
<div class="form-group">
    <label for="textfield" class="control-label col-sm-2">Meta Title: </label>
    <div class="col-sm-10">
        <asp:TextBox ID="txtMetaTitle" runat="server" CssClass="form-control" placeholder="Meta Title"></asp:TextBox>
    </div>
</div>
<div class="form-group">
    <label for="textfield" class="control-label col-sm-2">Meta keyword: </label>
    <div class="col-sm-10">
        <asp:TextBox ID="txtMetaKeyWord" runat="server" CssClass="form-control" placeholder="Meta Keyword"></asp:TextBox>
    </div>
</div>
<div class="form-group">
    <label for="textfield" class="control-label col-sm-2">Meta Description: </label>
    <div class="col-sm-10">
        <asp:TextBox ID="txtMetaDescription" runat="server" CssClass="form-control" placeholder="Meta Description"></asp:TextBox>
    </div>
</div>
<div class="form-group">
    <label for="textfield" class="control-label col-sm-2">Seo Url: </label>
    <div class="col-sm-10">
        <asp:TextBox ID="txtSeName" runat="server" CssClass="form-control" placeholder="Seo Url"></asp:TextBox>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        locdau('<%= NameClientID%>', '<%= txtSeName.ClientID %>');
        var isEmptyTitle = $("#<%= txtMetaTitle.ClientID%>").val().trim().length > 0 ? false : true;
        if (isEmptyTitle) {
            $("#<%= NameClientID%>").change(function () {
                if (isEmptyTitle) {
                    $("#<%= txtMetaTitle.ClientID%>").val($(this).val());
                }
            });
        }
    });
</script>
